package com.bumptech.glide.load.resource.file;

import com.bumptech.glide.load.ResourceDecoder;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.InputStream;

public class FileToStreamDecoder<T>
  implements ResourceDecoder<File, T>
{
  private static final FileOpener DEFAULT_FILE_OPENER = new FileOpener();
  private final FileOpener fileOpener;
  private ResourceDecoder<InputStream, T> streamDecoder;

  public FileToStreamDecoder(ResourceDecoder<InputStream, T> paramResourceDecoder)
  {
    this(paramResourceDecoder, DEFAULT_FILE_OPENER);
  }

  FileToStreamDecoder(ResourceDecoder<InputStream, T> paramResourceDecoder, FileOpener paramFileOpener)
  {
    this.streamDecoder = paramResourceDecoder;
    this.fileOpener = paramFileOpener;
  }

  // ERROR //
  public com.bumptech.glide.load.engine.Resource<T> decode(File paramFile, int paramInt1, int paramInt2)
    throws java.io.IOException
  {
    // Byte code:
    //   0: aconst_null
    //   1: astore 4
    //   3: aload_0
    //   4: getfield 31	com/bumptech/glide/load/resource/file/FileToStreamDecoder:fileOpener	Lcom/bumptech/glide/load/resource/file/FileToStreamDecoder$FileOpener;
    //   7: aload_1
    //   8: invokevirtual 39	com/bumptech/glide/load/resource/file/FileToStreamDecoder$FileOpener:open	(Ljava/io/File;)Ljava/io/InputStream;
    //   11: astore 4
    //   13: aload_0
    //   14: getfield 29	com/bumptech/glide/load/resource/file/FileToStreamDecoder:streamDecoder	Lcom/bumptech/glide/load/ResourceDecoder;
    //   17: aload 4
    //   19: iload_2
    //   20: iload_3
    //   21: invokeinterface 42 4 0
    //   26: astore 7
    //   28: aload 4
    //   30: ifnull +8 -> 38
    //   33: aload 4
    //   35: invokevirtual 47	java/io/InputStream:close	()V
    //   38: aload 7
    //   40: areturn
    //   41: astore 5
    //   43: aload 4
    //   45: ifnull +8 -> 53
    //   48: aload 4
    //   50: invokevirtual 47	java/io/InputStream:close	()V
    //   53: aload 5
    //   55: athrow
    //   56: astore 8
    //   58: aload 7
    //   60: areturn
    //   61: astore 6
    //   63: goto -10 -> 53
    //
    // Exception table:
    //   from	to	target	type
    //   3	28	41	finally
    //   33	38	56	java/io/IOException
    //   48	53	61	java/io/IOException
  }

  public String getId()
  {
    return "";
  }

  static class FileOpener
  {
    public InputStream open(File paramFile)
      throws FileNotFoundException
    {
      return new FileInputStream(paramFile);
    }
  }
}

/* Location:           C:\Users\user\Desktop\dd28_pcdd720\classes_dex2jar.jar
 * Qualified Name:     com.bumptech.glide.load.resource.file.FileToStreamDecoder
 * JD-Core Version:    0.6.2
 */